<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Kimi Image Downloader</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
</head>
<body>
    <div class="container">
        <div class="input-section">
            <textarea id="jsonInput" placeholder="Enter JSON formatted text here..."></textarea>
            <button id="parseButton">Parse JSON</button>
        </div>
        <div class="output-section">
            <table id="resultTable">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>Content</th>
                        <th>Cover Images</th>
                        <th>Total Images</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody id="resultBody"></tbody>
            </table>
        </div>
        <div id="downloadStatus" class="download-status"></div>
    </div>
    <script src="{{ url_for('static', filename='script.js') }}"></script>
</body>
</html>
